home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / lib / gimp / 2.0 / plug-ins / python-eval.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-04-20  |  733 b   |  16 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. from gimpfu import *
  5.  
  6. def code_eval(code):
  7.     if code == '-':
  8.         import sys
  9.         code = sys.stdin
  10.     
  11.     exec code in globals()
  12.  
  13. register('python-fu-eval', 'Evaluate Python code', 'Evaluate python code under the python interpreter (primarily for batch mode)', 'Manish Singh', 'Manish Singh', '2006', None, None, [
  14.     (PF_STRING, 'code', 'The code to evaluate', '')], [], code_eval)
  15. main()
  16.